package group.sicher.notice.sms;

import group.sicher.notice.sms.exception.SmsException;
import group.sicher.notice.sms.exception.SmsTemplateNotFoundException;

import java.util.Map;

/**
 * @author Donald
 * @description
 * @date 2019-06-26
 **/
public interface Sms {
    /**
     * @param phone    手机号
     * @param params   模版所需要的参数
     * @param template 模版名称
     * @return 发送成功返回true
     * @throws SmsException                 具体发送失败原因
     * @throws SmsTemplateNotFoundException
     */
    boolean send(String phone, Map<String, String> params, String template) throws SmsException, SmsTemplateNotFoundException;
}
